.class Lcom/glympse/android/glympse/ViewMap$DoUpdateOnMainThread;
.super Lcom/glympse/platform/GRunnable;
.source "ViewMap.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewMap;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "DoUpdateOnMainThread"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewMap;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympse/ViewMap;)V
    .locals 0
    .parameter

    .prologue
    .line 431
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewMap$DoUpdateOnMainThread;->this$0:Lcom/glympse/android/glympse/ViewMap;

    invoke-direct {p0}, Lcom/glympse/platform/GRunnable;-><init>()V

    return-void
.end method


# virtual methods
.method public Run()V
    .locals 3

    .prologue
    .line 442
    :try_start_0
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewMap$DoUpdateOnMainThread;->this$0:Lcom/glympse/android/glympse/ViewMap;

    iget-object v1, v1, Lcom/glympse/android/glympse/ViewMap;->m_oGlympseView:Lcom/glympse/android/glympse/ViewMap$MyGlympseView;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/glympse/android/glympse/ViewMap$DoUpdateOnMainThread;->this$0:Lcom/glympse/android/glympse/ViewMap;

    iget-object v1, v1, Lcom/glympse/android/glympse/ViewMap;->m_oZoomControls:Landroid/widget/ZoomControls;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v1, v1, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    if-eqz v1, :cond_0

    .line 444
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewMap$DoUpdateOnMainThread;->this$0:Lcom/glympse/android/glympse/ViewMap;

    iget-object v1, v1, Lcom/glympse/android/glympse/ViewMap;->m_oGlympseView:Lcom/glympse/android/glympse/ViewMap$MyGlympseView;

    const/high16 v2, 0x4000

    invoke-virtual {v1, v2}, Lcom/glympse/android/glympse/ViewMap$MyGlympseView;->DoUpdate(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 451
    :cond_0
    :goto_0
    return-void

    .line 447
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 449
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method
